#include "VertexFormats.fx"

struct VSOut
{
	float4 pos : POSITION;
	float4 color : COLOR;
};

VSOut VS_VectorBatch(VertexPosColor input)
{
	VSOut output;
	output.pos = float4(input.pos, 1.0f);
	output.color = input.color;
	return output;
}

float4 PS_VectorBatch(VSOut input) : COLOR
{
    return input.color;
}

technique t0
{
	pass p0
	{
		VertexShader = compile vs_2_0 VS_VectorBatch();
		PixelShader = compile ps_2_0 PS_VectorBatch();
		
		AlphaBlendEnable = true;
		SrcBlend = srcAlpha;
		DestBlend = invSrcAlpha;
		ZEnable = false;
	}
}
